package com.dengyafei.mapper;

import com.dengyafei.bean.PreferEntity;
import com.dengyafei.bean.PreferEntityExample;

import java.util.List;

import com.dengyafei.domin.dto.DeliveryResumeDTO;
import com.dengyafei.domin.dto.PreferScoreDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 邓亚非
 */
@Mapper
public interface PreferEntityMapper {
    int countByExample(PreferEntityExample example);

    int deleteByExample(PreferEntityExample example);

    int deleteByPrimaryKey(Integer lid);

    int insert(PreferEntity record);

    int insertSelective(PreferEntity record);

    List<PreferEntity> selectByExample(PreferEntityExample example);

    PreferEntity selectByPrimaryKey(Integer lid);

    int updateByExampleSelective(@Param("record") PreferEntity record, @Param("example") PreferEntityExample example);

    int updateByExample(@Param("record") PreferEntity record, @Param("example") PreferEntityExample example);

    int updateByPrimaryKeySelective(PreferEntity record);

    int updateByPrimaryKey(PreferEntity record);

    Integer insertPrefer(DeliveryResumeDTO deliveryResumeDTO);

    List<Integer> queryScorePid();

    List<PreferScoreDTO> queryPreferScore();
}